/* 全局样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
}

.container {
    min-height: 100vh;
}


/* 导航栏样式 */

.navbar {
    background-color: #1e3799;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}


/* 主要内容区域样式 */

.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* 数据概览卡片样式 */

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.card-content {
    display: flex;
    align-items: baseline;
}

.number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.unit {
    margin-left: 0.5rem;
    color: #7f8c8d;
}


/* 图表区域样式 */

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-box h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.chart {
    height: 300px;
}


/* 表格样式 */

.table-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-container h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    color: #7f8c8d;
    font-weight: 500;
}

tr:hover {
    background-color: #f8f9fa;
}


/* 响应式设计 */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        margin-top: 1rem;
        gap: 1rem;
    }
    .charts-container {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 1rem;
    }
}